package com.yswy.backstage.controller.api;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yswy.backstage.annotation.NotAuth;
import com.yswy.backstage.dto.api.AppEventCallback;
import com.yswy.backstage.serviceApi.ApiPackageManageService;
import com.yswy.backstage.serviceApi.ApiTgCallBackJlIdService;
import com.yswy.backstage.serviceApi.ApiTgCallBackKsIdService;
import com.yswy.backstage.serviceApi.ApiTgCallBackLoglService;
import com.yswy.domain.entity.PackageManage;
import com.yswy.domain.vo.dto.TgDeviceKs;
import com.yswy.domain.vo.gld.search.PackageManageSearch;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
@RequestMapping("/appEvent")
@Api(tags = "app事件回传")
@Slf4j
public class ApiAppEventController {

    @Autowired
    private ApiTgCallBackLoglService apiTgCallBackLoglService ;

    @PostMapping("/callbackAppTriggerNode")
    @ApiOperation(value = "用户事件触发")
    @NotAuth
    public void callbackAppTriggerNode(@RequestBody AppEventCallback filter, HttpServletRequest request) {
        apiTgCallBackLoglService.callbackAppTriggerNode(filter );
    }

}
